Skip to content

Improved printing of epi_df #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Jul 7, 2022

Conversation

kenmawer
Copy link
Contributor

Addressed issue #113.

admin and others added 30 commits May 10, 2022 16:53
Merge branch 'main' into epi_slide-error_message

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Merge branch 'main' into epi_slide-error_message
Merge branch 'main' into epi_slide-error_message
…tatement

Merge branch 'main' into epi-archive-print
Copy link
Contributor

@dajmcdon dajmcdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the test, because this is a request for printing, can you add a comment to the PR where you show an example of the results? Try using the reprex() function I demonstrated and just paste it directly into a comment on the PR.

@kenmawer
Copy link
Contributor Author

kenmawer commented Jun 29, 2022

Here is the new print:

library(epiprocess)
#> 
#> Attaching package: 'epiprocess'
#> The following object is masked from 'package:stats':
#> 
#>     filter
jhu_csse_daily_subset
#> An `epi_df` object, 4,026 x 6 with metadata:
#> * geo_type  = state
#> * time_type = day
#> * as_of     = 2022-05-23 13:17:07
#> 
#> # A tibble: 4,026 × 6
#>    geo_value time_value case_rate_7d_av death_rate_7d_av cases cases_7d_av
#>  * <chr>     <date>               <dbl>            <dbl> <dbl>       <dbl>
#>  1 ca        2020-03-01         0.00327         0            6        1.29
#>  2 ca        2020-03-02         0.00435         0            4        1.71
#>  3 ca        2020-03-03         0.00617         0            6        2.43
#>  4 ca        2020-03-04         0.00980         0.000363    11        3.86
#>  5 ca        2020-03-05         0.0134          0.000363    10        5.29
#>  6 ca        2020-03-06         0.0200          0.000363    18        7.86
#>  7 ca        2020-03-07         0.0294          0.000363    26       11.6 
#>  8 ca        2020-03-08         0.0341          0.000363    19       13.4 
#>  9 ca        2020-03-09         0.0410          0.000726    23       16.1 
#> 10 ca        2020-03-10         0.0468          0.000726    22       18.4 
#> # … with 4,016 more rows

Created on 2022-06-29 by the reprex package (v2.0.1)

@kenmawer
Copy link
Contributor Author

kenmawer commented Jul 5, 2022

@dajmcdon Also, I noticed that the test-epi_slide seems to be an inherent part of epiprocess, as it appears in my other branches, hence I resolved the comment about it.

@kenmawer kenmawer requested a review from dajmcdon July 7, 2022 21:23
@dajmcdon dajmcdon merged commit 4fd36b2 into cmu-delphi:main Jul 7, 2022
@dajmcdon dajmcdon deleted the km-improve_printing_epi_df branch July 7, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants